package com.aier.school.entity;

import java.sql.Timestamp;

public class SchoolMessage implements java.io.Serializable{

    /**
     * 学校(班级)公告表
     */
    private static final long serialVersionUID = 1L;

    private Long mid;        //公告id
    private Integer sid;    //学校id
    private Long cid;        //班级id
    private Long tid;        //发布通告的学校教师id
    private String message;    //通告内容
    private Timestamp ctime;//发布时间
    private Short type;        //通告类型 0:校园通告(全体师生),1:班级通告,2:校园通告(全体教师),
    private String img;        //公告图片
    private String title;     // 公告标题
    private Integer count;   // 公告发送的人数
    private Integer reading; // 阅读人数
    
    //扩展
    private String ctime_str;
    private String name_teacher;    //发布公告教师姓名
    private String headimg_teacher;    //发布公告教师头像
    
    // 短信发送成功和失败的用户名
    private String successStr;
    private String failStr;
    

    public SchoolMessage() {
        super();
    }

    

    public SchoolMessage(Integer sid, Long cid, Long tid, String message,
            Short type,String img,String title,Integer count) {
        super();
        this.sid = sid;
        this.cid = cid;
        this.tid = tid;
        this.message = message;
        this.type = type;
        this.img = img;
        this.title = title;
        this.count = count;
    }



    public SchoolMessage(Long mid, Integer sid, Long cid, Long tid,
            String message, Timestamp ctime, Short type,String img,String title,Integer count) {
        super();
        this.mid = mid;
        this.sid = sid;
        this.cid = cid;
        this.tid = tid;
        this.message = message;
        this.ctime = ctime;
        this.type = type;
        this.img = img;
        this.title = title;
        this.count = count;
    }
    
    public SchoolMessage(Long mid, Integer sid, Long cid, Long tid,
			String message, Timestamp ctime, Short type, String img,
			String title, Integer count, Integer reading, String ctime_str,
			String name_teacher, String headimg_teacher, String successStr,
			String failStr) {
		super();
		this.mid = mid;
		this.sid = sid;
		this.cid = cid;
		this.tid = tid;
		this.message = message;
		this.ctime = ctime;
		this.type = type;
		this.img = img;
		this.title = title;
		this.count = count;
		this.reading = reading;
		this.ctime_str = ctime_str;
		this.name_teacher = name_teacher;
		this.headimg_teacher = headimg_teacher;
		this.successStr = successStr;
		this.failStr = failStr;
	}



	public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public Timestamp getCtime() {
        return ctime;
    }

    public void setCtime(Timestamp ctime) {
        this.ctime = ctime;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }


    public String getMessage() {
        return message;
    }


    public void setMessage(String message) {
        this.message = message;
    }



    public String getCtime_str() {
        return ctime_str;
    }



    public void setCtime_str(String ctime_str) {
        this.ctime_str = ctime_str;
    }



    public String getName_teacher() {
        return name_teacher;
    }



    public void setName_teacher(String name_teacher) {
        this.name_teacher = name_teacher;
    }



    public String getHeadimg_teacher() {
        return headimg_teacher;
    }



    public void setHeadimg_teacher(String headimg_teacher) {
        this.headimg_teacher = headimg_teacher;
    }



    public String getImg() {
        return img;
    }



    public void setImg(String img) {
        this.img = img;
    }



    public String getSuccessStr() {
        return successStr;
    }



    public void setSuccessStr(String successStr) {
        this.successStr = successStr;
    }



    public String getFailStr() {
        return failStr;
    }



    public void setFailStr(String failStr) {
        this.failStr = failStr;
    }



    public String getTitle() {
        return title;
    }



    public void setTitle(String title) {
        this.title = title;
    }



    public Integer getCount() {
        return count;
    }



    public void setCount(Integer count) {
        this.count = count;
    }



    public Integer getReading() {
        return reading;
    }



    public void setReading(Integer reading) {
        this.reading = reading;
    }




    
}
